<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        let s1 = new Set();
        s1.add(1);
        s1.add(2);
        s1.add(3);

        s1.add(4);
        console.log(s1);

        let arr = new Array(1,2,3,4,4,4,5);
        let s2 = new Set(arr);
        console.log(s2);

        for (const obj of s2.values()) {
            console.log(obj);
        }

        let m1 = new Map();
        m1.set("a","aaaa");
        m1.set("b","bbbb");
        m1.set("c","cccc");


        for (const key of m1.keys()) {
            console.log(key);
        }
        console.log("-------------------");

        for (const value of m1.values()) {
            console.log(value);
        }
        console.log("-------------------");
        for (const obj of m1.entries()) {
            console.log(obj);
        }

        
    </script>
</body>
</html>